package com.github.shuaidd.model.dto;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import java.io.Serializable;
import java.util.List;

/**
 * 描述 process xml 表示
 *
 * @author ddshuai
 * @date 2020-08-08 15:01
 **/
@Data
@XmlAccessorType(XmlAccessType.FIELD)
public class BpmnProcessDTO implements Serializable {

    private static final long serialVersionUID = -1414596016091724301L;

    @XmlAttribute(name = "id")
    private String id;

    @XmlAttribute(name = "name")
    private String name;

    @XmlElement(name = "bpmn:startEvent")
    private StartEventDTO startEvent;

    @XmlElement(name = "bpmn:task")
    private List<TaskDTO> tasks;

    @XmlElement(name = "bpmn:userTask")
    private List<TaskDTO> userTasks;

    @XmlElement(name = "bpmn:endEvent")
    private EndEventDTO endEvent;

    @XmlElement(name = "bpmn:sequenceFlow")
    private List<SequenceFlowDTO> sequenceFlows;
}
